Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRCallInterceptedProc

You can use the QTVRCallInterceptedProc function to call an intercepted QuickTime VR function from within an intercept procedure.

OSErr QTVRCallInterceptedProc (
                     QTVRInstanceqtvr,
                     QTVRInterceptRecord*qtvrMsg);
qtvr
An instance of a QuickTime VR movie.
qtvrMsg
An intercept record (link) that specifies the function that your procedure is intercepting and the parameters for that function. This should be the same intercept record passed to your intercept procedure.
function result
A result code.

DESCRIPTION

The QTVRCallInterceptedProc function executes the QuickTime VR Manager function indicated by the selector field of the qtvrMsg intercept record. The parameters passed to that function are the QuickTime VR movie specified by the qtvr parameter and any other parameters contained in the parameter field of the qtvrMsg record. You can, if you wish, change the parameters in that field before calling QTVRCallInterceptedProc .

You can call QTVRCallInterceptedProc more than once in your intercept procedure. In addition, the QuickTime VR Manager will call the intercepted function again unless your intercept procedure returns true in its cancel parameter.

SPECIAL CONSIDERATIONS

You should call QTVRCallInterceptedProc only in an intercept procedure.

SEE ALSO

See "QuickTime VR Intercept Procedure" for information about intercept procedures. Listing 2-7 illustrates the use of QTVRCallInterceptedProc .


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |